.order-detail-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.adm-nav-bar {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 订单状态样式 */
.order-detail-container .order-status-section {
  background-color: #1677ff;
  color: #fff;
  padding: 15px;
  transition: all 0.3s ease;
}

/* 订单完成状态的特殊样式 */
.order-detail-container .order-status-section.completed {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}

.order-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.order-status-text {
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 订单完成时的状态文本动画 */
.order-status-text.completed {
  animation: statusComplete 0.5s ease-in-out;
}

@keyframes statusComplete {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.order-cancel-reason {
  font-size: 14px;
  opacity: 0.8;
}

/* 自定义 Steps 样式 - 修复颜色问题 */
.order-detail-container .order-status-section .adm-steps {
  --adm-color-primary: #ffffff;
  --adm-color-weak: rgba(255, 255, 255, 0.5);
  --adm-color-light: rgba(255, 255, 255, 0.3);
  --adm-color-text: #ffffff;
  --adm-color-text-secondary: rgba(255, 255, 255, 0.8);
}

/* 默认样式 - 所有步骤先设为未完成状态 */
.order-detail-container .order-status-section .adm-steps .adm-step {
  color: rgba(255, 255, 255, 0.6) !important;
}

.order-detail-container .order-status-section .adm-steps .adm-step-indicator {
  background-color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.order-detail-container .order-status-section .adm-step-title,
.order-detail-container .order-status-section .adm-step-description {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* 当前步骤 = 0 (待付款) - 下单步骤已完成 */
.order-detail-container .steps-container[data-current="0"] .adm-step:nth-child(1) {
  color: #ffffff !important;
}

.order-detail-container .steps-container[data-current="0"] .adm-step:nth-child(1) .adm-step-indicator {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #1677ff !important;
}

.order-detail-container .steps-container[data-current="0"] .adm-step:nth-child(1) .adm-step-title,
.order-detail-container .steps-container[data-current="0"] .adm-step:nth-child(1) .adm-step-description {
  color: #ffffff !important;
}

/* 当前步骤 = 1 (待发货) - 下单、付款步骤已完成 */
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(1),
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(2) {
  color: #ffffff !important;
}

.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(1) .adm-step-indicator,
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(2) .adm-step-indicator {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #1677ff !important;
}

.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(1) .adm-step-title,
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(1) .adm-step-description,
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(2) .adm-step-title,
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(2) .adm-step-description {
  color: #ffffff !important;
}

/* 当前步骤 = 2 (待收货) - 下单、付款、发货步骤已完成 */
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(1),
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(2),
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(3) {
  color: #ffffff !important;
}

.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(1) .adm-step-indicator,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(2) .adm-step-indicator,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(3) .adm-step-indicator {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #1677ff !important;
}

.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(1) .adm-step-title,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(1) .adm-step-description,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(2) .adm-step-title,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(2) .adm-step-description,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(3) .adm-step-title,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(3) .adm-step-description {
  color: #ffffff !important;
}

/* 当前步骤 = 3 (已完成) - 所有步骤已完成 */
.order-detail-container .steps-container[data-current="3"] .adm-step {
  color: #ffffff !important;
}

.order-detail-container .steps-container[data-current="3"] .adm-step .adm-step-indicator {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #1677ff !important;
}

.order-detail-container .steps-container[data-current="3"] .adm-step .adm-step-title,
.order-detail-container .steps-container[data-current="3"] .adm-step .adm-step-description {
  color: #ffffff !important;
}

/* 连接线样式 */
.order-detail-container .order-status-section .adm-steps .adm-step::after {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

/* 已完成步骤之间的连接线为白色 */
.order-detail-container .steps-container[data-current="1"] .adm-step:nth-child(1)::after,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(1)::after,
.order-detail-container .steps-container[data-current="2"] .adm-step:nth-child(2)::after,
.order-detail-container .steps-container[data-current="3"] .adm-step:nth-child(1)::after,
.order-detail-container .steps-container[data-current="3"] .adm-step:nth-child(2)::after,
.order-detail-container .steps-container[data-current="3"] .adm-step:nth-child(3)::after {
  background-color: #ffffff !important;
}

/* 卡片通用样式 */
.order-card {
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.card-header {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* 地址信息样式 */
.address-info {
  padding: 15px;
}

.address-contact {
  margin-bottom: 8px;
}

.contact-name {
  font-weight: 500;
  margin-right: 10px;
}

.contact-phone {
  color: #666;
}

.address-detail {
  color: #333;
  line-height: 1.4;
}

/* 订单商品样式 */
.order-items {
  padding: 0 15px;
}

.order-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
  border-bottom: none;
}

.item-image {
  flex: 0 0 80px;
  margin-right: 10px;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-name {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  font-weight: 500;
  color: #ff4d4f;
}

.item-quantity {
  color: #999;
  font-size: 14px;
}

/* 订单总价样式 */
.order-total {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

.total-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.total-item:last-child {
  margin-bottom: 0;
}

.order-actual-total {
  font-size: 16px;
  font-weight: 500;
}

.actual-price {
  color: #ff4d4f;
}

/* 订单信息样式 */
.order-info-list {
  padding: 15px;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #666;
  width: 80px;
  flex-shrink: 0;
}

.info-value {
  flex: 1;
  word-break: break-all;
}

/* 底部按钮样式 */
.order-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  height: 60px;
  padding: 0 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid #f0f0f0;
}

.order-footer .adm-button {
  margin-left: 8px;
  min-width: 80px;
}

/* 加载中样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loading-spinner {
  font-size: 18px;
  padding: 20px;
}